//****************************************************************************
//
// LED blink example
//
//****************************************************************************

#configure board        hu_arm_v4
#configure clcd_lines   2
#configure memory       rom
#configure baudrate     38400

#include "pRTOS.h"
#include "armboard.h"

int main( void ){
   RTOS::run();
   return 0;
}

// end of standard part

void write( const char * s ){
   while( *s != 0 ){ armboard::LCD::char_write( *s++ ); }
}

class talker : public RTOS::task {
private:
   void main( void ){
      int n = 0;
      for(;;){
         write( "\vHello .." );
         sleep( 500 MS );
         write( "\v.. world" );
         sleep( 500 MS );
         if( ++n == 120 ){
            RTOS::statistics_clear();
            n=0;
         }
      }
   }
};

talker t;


